﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/AdminMaster.Master" AutoEventWireup="true" CodeBehind="editAgent.aspx.cs" Inherits="whatpricemyhouse.Admin.editAgent" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div>
        <div>
            Users Account Management</div>
        <p>
        </p>
        <b>- The total registered users is:
            <asp:Literal runat="server" ID="lblTotalUsers" /><br />
            - The total online users at this moment:
            <asp:Literal runat="server" ID="lblOnlineUsers" /></b>
        <p>
        </p>
        In order to display all users whose name begins with letter click on the link letter:
        <p>
        </p>
        <asp:Repeater runat="server" ID="rptAlphabetBar" OnItemCommand="rptAlphabetBar_ItemCommand">
            <ItemTemplate>
                <asp:LinkButton ID="LinkButton1" runat="server" Text='<%# Container.DataItem %>'
                    CommandArgument='<%# Container.DataItem %>' />&nbsp;&nbsp;
            </ItemTemplate>
        </asp:Repeater>
        <p>
        </p>
        Use the below feature to search users by partial username or e-mail:
        <p>
        </p>
        <asp:DropDownList runat="server" ID="ddlUserSearchTypes">
            <asp:ListItem Text="UserName" Selected="true" />
            <asp:ListItem Text="E-mail" />
        </asp:DropDownList>
        contains
        <asp:TextBox runat="server" ID="txtSearchText" />
        <asp:Button runat="server" ID="btnSearch" Text="Search" OnClick="btnSearch_Click" />
        <asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="false" DataKeyNames="UserName"
            OnRowCreated="gvUsers_RowCreated" OnRowDeleting="gvUsers_RowDeleting">
            <Columns>
                <asp:BoundField HeaderText="UserName" DataField="UserName" />
                <asp:HyperLinkField HeaderText="E-mail" DataTextField="Email" DataNavigateUrlFormatString="mailto:{0}"
                    DataNavigateUrlFields="Email" />
                <asp:BoundField HeaderText="Created" DataField="CreationDate" DataFormatString="{0:MM/dd/yy h:mm tt}" />
                <asp:BoundField HeaderText="Last activity" DataField="LastActivityDate" DataFormatString="{0:MM/dd/yy h:mm tt}" />
                <asp:CheckBoxField HeaderText="Approved" DataField="IsApproved" HeaderStyle-HorizontalAlign="Center"
                    ItemStyle-HorizontalAlign="Center" />
                <asp:HyperLinkField Text="Edit" DataNavigateUrlFormatString="EditUsers.aspx?UserName={0}"
                    DataNavigateUrlFields="UserName" />
                <asp:ButtonField CommandName="Delete" ButtonType="Image" Text="Delete" />
            </Columns>
            <EmptyDataTemplate>
                No users found.</EmptyDataTemplate>
        </asp:GridView>
        <br />
    </div>
    <hr />
    Create new User<br />
&nbsp;<asp:CreateUserWizard ID="CreateUserWizard1" runat="server" 
        BackColor="#F7F6F3" BorderColor="#E6E2D8" BorderStyle="Solid" BorderWidth="1px" 
        Font-Names="Verdana" Font-Size="0.8em" LoginCreatedUser="False" 
        oncreateduser="CreateUserWizard1_CreatedUser">
        <ContinueButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" 
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
            ForeColor="#284775" />
        <CreateUserButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" 
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
            ForeColor="#284775" />
        <TitleTextStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <WizardSteps>
            <asp:CreateUserWizardStep runat="server" />
            <asp:CompleteWizardStep runat="server" />
        </WizardSteps>
        <HeaderStyle BackColor="#5D7B9D" BorderStyle="Solid" Font-Bold="True" 
            Font-Size="0.9em" ForeColor="White" HorizontalAlign="Center" />
        <NavigationButtonStyle BackColor="#FFFBFF" BorderColor="#CCCCCC" 
            BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" 
            ForeColor="#284775" />
        <SideBarButtonStyle BorderWidth="0px" Font-Names="Verdana" ForeColor="White" />
        <SideBarStyle BackColor="#5D7B9D" BorderWidth="0px" Font-Size="0.9em" 
            VerticalAlign="Top" />
        <StepStyle BorderWidth="0px" />
    </asp:CreateUserWizard>
</asp:Content>
